package com.zui.entity.setup;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.zui.entity.BaseAssignedIdEntity;





@Entity
@Table(name="uom_type")
public class UomType extends BaseAssignedIdEntity {
	private static final long serialVersionUID = 1L;

	private String uomTypeName;
	@OneToOne
	@JoinColumn(name="parentUomTypeId")
	private UomType parentUomType;
	
	@Column(length=50)
	public String getUomTypeName() {return uomTypeName;}
	@ManyToOne
	@JoinColumn(name="parentTypeId")
	public UomType getParentUomType() {return parentUomType;}
	
	public void setUomTypeName(String uomTypeName) {
		this.uomTypeName = uomTypeName;
	}
	public void setParentUomType(UomType parentUomType) {
		this.parentUomType = parentUomType;
	}
}
